package com.dmap.officialwebsite.po;

import java.io.Serializable;

public class Article implements Serializable {
    /**
     * 
     * 表字段 : article.id
     */
    private Long id;

    /**
     * 
     * 表字段 : article.company_id
     */
    private Long companyId;

    /**
     * 
     * 表字段 : article.company_name
     */
    private String companyName;

    /**
     * 
     * 表字段 : article.article_type_id
     */
    private Long articleTypeId;

    /**
     * 
     * 表字段 : article.article_type_name
     */
    private String articleTypeName;

    /**
     * 
     * 表字段 : article.title
     */
    private String title;

    /**
     * 
     * 表字段 : article.second_title
     */
    private String secondTitle;

    /**
     * 作者
     * 表字段 : article.author
     */
    private String author;

    /**
     * 状态，预留字段
     * 表字段 : article.status
     */
    private Integer status;

    /**
     * 
     * 表字段 : article.create_time
     */
    private Long createTime;

    /**
     * 
     * 表字段 : article.update_time
     */
    private Long updateTime;

    /**
     * 文章地址url
     * 表字段 : article.address
     */
    private String address;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table article
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table article
     *
     * @mbggenerated
     */
    public Article(Long id, Long companyId, String companyName, Long articleTypeId, String articleTypeName, String title, String secondTitle, String author, Integer status, Long createTime, Long updateTime, String address) {
        this.id = id;
        this.companyId = companyId;
        this.companyName = companyName;
        this.articleTypeId = articleTypeId;
        this.articleTypeName = articleTypeName;
        this.title = title;
        this.secondTitle = secondTitle;
        this.author = author;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.address = address;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table article
     *
     * @mbggenerated
     */
    public Article() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.id
     *
     * @return the value of article.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.id
     *
     * @param id the value for article.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.company_id
     *
     * @return the value of article.company_id
     *
     * @mbggenerated
     */
    public Long getCompanyId() {
        return companyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.company_id
     *
     * @param companyId the value for article.company_id
     *
     * @mbggenerated
     */
    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.company_name
     *
     * @return the value of article.company_name
     *
     * @mbggenerated
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.company_name
     *
     * @param companyName the value for article.company_name
     *
     * @mbggenerated
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.article_type_id
     *
     * @return the value of article.article_type_id
     *
     * @mbggenerated
     */
    public Long getArticleTypeId() {
        return articleTypeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.article_type_id
     *
     * @param articleTypeId the value for article.article_type_id
     *
     * @mbggenerated
     */
    public void setArticleTypeId(Long articleTypeId) {
        this.articleTypeId = articleTypeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.article_type_name
     *
     * @return the value of article.article_type_name
     *
     * @mbggenerated
     */
    public String getArticleTypeName() {
        return articleTypeName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.article_type_name
     *
     * @param articleTypeName the value for article.article_type_name
     *
     * @mbggenerated
     */
    public void setArticleTypeName(String articleTypeName) {
        this.articleTypeName = articleTypeName == null ? null : articleTypeName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.title
     *
     * @return the value of article.title
     *
     * @mbggenerated
     */
    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.title
     *
     * @param title the value for article.title
     *
     * @mbggenerated
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.second_title
     *
     * @return the value of article.second_title
     *
     * @mbggenerated
     */
    public String getSecondTitle() {
        return secondTitle;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.second_title
     *
     * @param secondTitle the value for article.second_title
     *
     * @mbggenerated
     */
    public void setSecondTitle(String secondTitle) {
        this.secondTitle = secondTitle == null ? null : secondTitle.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.author
     *
     * @return the value of article.author
     *
     * @mbggenerated
     */
    public String getAuthor() {
        return author;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.author
     *
     * @param author the value for article.author
     *
     * @mbggenerated
     */
    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.status
     *
     * @return the value of article.status
     *
     * @mbggenerated
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.status
     *
     * @param status the value for article.status
     *
     * @mbggenerated
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.create_time
     *
     * @return the value of article.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.create_time
     *
     * @param createTime the value for article.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.update_time
     *
     * @return the value of article.update_time
     *
     * @mbggenerated
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.update_time
     *
     * @param updateTime the value for article.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column article.address
     *
     * @return the value of article.address
     *
     * @mbggenerated
     */
    public String getAddress() {
        return address;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column article.address
     *
     * @param address the value for article.address
     *
     * @mbggenerated
     */
    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table article
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", articleTypeId=").append(articleTypeId);
        sb.append(", articleTypeName=").append(articleTypeName);
        sb.append(", title=").append(title);
        sb.append(", secondTitle=").append(secondTitle);
        sb.append(", author=").append(author);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", address=").append(address);
        sb.append("]");
        return sb.toString();
    }
}